block-devices
provides the ability to perform operations on raw disk block devices (e.g. /dev/sda
, /dev/mmcblk0
). This interface grants privileged access to the device.
Auto-connect: no
Super-privileged: yes
Requires snapd version 2.37+.
When the plug sets allow-partitions
boolean attribute to true
, the interface will grant access to individual partition devices (e.g. /dev/sda1
, /dev/mmcblk0p1
). The plug needs to be declared in the following manner:
plugs:
block-devices:
allow-partitions: true
The allow-partitions
attribute requires snapd version 2.71+.
Consumers of this interface require a snap declaration for distribution via the Snap Store.
This is a snap interface. See Interface management and Supported interfaces for further details on how interfaces are used.
Last updated 4 days ago.